<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>

<div id="md_list_in_officeItems_contanoner">
<s:form id="query_officeItems_select_form" name="query_officeItems_select_form" method="post" action="officeItems/select.do">
<input name="pagingCnt" type="hidden" value="md_list_in_officeItems_contanoner">
<div class="con_wrap_padding">
	<div class="trans_operate_box clearfix">
		<div class="operate_btns">			
		</div>
		<div class="trans_type_search">
			名称：<s:textfield name="mc" id="zt_info" size="10"/>
			型号：<s:textfield name="xh" id="zt_info" size="10"/>
			规格：<s:textfield name="gg" id="zt_info" size="10"/>
	    	<a class="btn_short" name="button" id="button" href="javascript:void(0)" title="搜索" onclick="QueryOfficeItemsListUtils.query()">搜索</a> 
	    	<a class="btn_short" name="button" id="button" href="javascript:void(0)" title="确定" onclick="Ext.milan.pagejs.page_officeItems.addWp('query_officeItems_select_form')">确定</a>
		</div>   
	</div>
	<table id="dataGridTable_office_items" width="100%" class="dhtmlxGrid" imgpath="skins/default/images/dhtmlx/" lightnavigation="true" style="table-layout:fixed">
		<tr>
			<td align="center">名称</td>
			<td align="center">型号</td>
			<td align="center">规格</td>
			<td align="center">库存数量</td>
			<td align="center">单位</td>
			<td align="center">类别</td>
		</tr>
		<c:forEach items="${page.result}" var="item" varStatus="status">
		<tr>
			<td align="left"><input title="打勾选择该物品" name="selectCheck" type="checkbox" value="${item.id}" mc="${item.mc}"> ${item.mc}</td>
			<td align="center">${item.xh}</td>
			<td align="center">${item.gg}</td>
			<td align="center">${item.sl}</td>
			<td align="center">${item.dw}</td>
			<td align="center">${item.lb}</td>
		</tr>
		</c:forEach>
		
		<c:if test="${fn:length(page.result)==0}">
		<tr>
	    	<td colspan="7"><div class="note_red_in_div">系统没有查找到符合条件的数据！</div></td>
	    </tr>
	    </c:if>
	</table>
	<input type="hidden" name="pageNumber" value="${page.thisPageNumber}"/>
	<input type="hidden" name="pageSize" value="${page.pageSize}"/>
	<simpletable:pagingToolbar page="${page}"/>
 	</div>
</s:form>
</div>
<script type="text/javascript">;
	QueryOfficeItemsListUtils = {};
	
	/**
	 * 条件查询
	 */
	QueryOfficeItemsListUtils.query = function() {
		//强行设置当前页为第一页
		var currentPage = $("query_officeItems_select_form").pageNo;
		if(currentPage) 
			currentPage.value = 1;
		
		Ext.milan.pagejs.page_officeItems.query2('query_officeItems_select_form');
	};
	
</script>